package com.zyh.test02.service.impl;

import com.zyh.test02.entity.Student;
import com.zyh.test02.mapper.StudentMapper;
import com.zyh.test02.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    StudentMapper studentMapper;

    @Override
    public Student selStudentById(String id) {
        System.out.println("id:"+id);
        System.out.println("data:"+studentMapper.selById(id));
        return studentMapper.selById(id);
    }
}
